<template>
    <product-form :model="model" :manufacturers="manufacturers" @save-product="addProduct"></product-form>
</template>

<script>
import ProductForm from '@/pages/admin/ProductForm'

export default {
    data() {
        return {
            model: {},
            isEditing: false,
            manufacturers: [
                {
                    _id: 'sam',
                    name: 'Samsung'
                },
                {
                    _id: 'apple',
                    name: 'Apple'
                }
            ]
        }
    },
    methods: {
        addProduct(model) {
            console.log('model', model)
        }
    },
    components: {
        'product-form': ProductForm
    }
}
</script>
